var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

//comment 数据实体
var CommentSchema = new mongoose.Schema({
    newsId: mongoose.Schema.ObjectId,
    newsTitle: String,
    content: String,
    paths: String,
    date: { type: Date, default: Date.now }
});
CommentSchema.plugin(mongoosePaginate);

module.exports = mongoose.model('comment', CommentSchema);